package com.bootdo.project.service.impl;

import com.bootdo.project.domain.TAd;
import com.bootdo.project.dao.TAdMapper;
import com.codegen.vo.Page;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;

import org.apache.ibatis.annotations.Param;

/**
 *
 * Created by xxxx on 2019/03/19.
 */
@Service
public class TAdService {

	@Autowired
    private TAdMapper tAdMapper;
    
    public int deleteByPrimaryKey(Integer id){
        return tAdMapper.deleteByPrimaryKey(id);
    }

    public int insert(TAd record){
        return tAdMapper.insert(record);
    }

    public int insertSelective(TAd record){
        return tAdMapper.insertSelective(record);
    }

    public TAd selectByPrimaryKey(Integer id){
        return tAdMapper.selectByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(TAd record){
        return tAdMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(TAd record){
        return tAdMapper.updateByPrimaryKey(record);
    }

    public List<TAd> selectByCondition(TAd record){
        return tAdMapper.selectByCondition(record);
    }

    public List<TAd> selectAll(){
        return tAdMapper.selectAll();
    }

    public List<TAd> selectByPage(Page<TAd> page){
        return tAdMapper.selectByPage(page);
    }

    public Integer count(TAd record){
        return tAdMapper.count(record);
    }

    public int deleteByCondition(TAd record){
        return tAdMapper.deleteByCondition(record);
    }

}
